package com.service.impl;

import com.dao.UserInfoDao;
import com.entity.UserInfo;
import com.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	private UserInfoDao userInfoDao;

	@Override
	public List<UserInfo> getAll() {
		return userInfoDao.getAll();
	}

	@Override
	public UserInfo getByUsername(String userName) {
		return userInfoDao.getByUsername(userName);
	}

	@Override
	public UserInfo getById(Integer id) {
		return userInfoDao.getById(id);
	}
	//修改
	@Override
	public Boolean editUserInfo(UserInfo userInfo) {
		return userInfoDao.editUserInfo(userInfo);
	}
}
